package cn.iurac.testsystem.controller;

import com.baomidou.kaptcha.Kaptcha;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/kaptcha")
@Api("验证码controller")
public class KaptchaController {

    @Resource
    private Kaptcha kaptcha;

    @GetMapping("/render")
    @ApiOperation("获取验证码图片")
    public void render() {
        kaptcha.render();
    }


}